package org.example.mapper;

import org.apache.ibatis.annotations.Param;
import org.example.domain.po.ErpMaterialCategory;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.example.domain.vo.ErpMaterialCategoryVo;
import org.example.domain.vo.ErpOrganizationVO;
import org.example.utils.Result;

import java.util.List;

/**
* @description 针对表【erp_material_category(产品类型表)】的数据库操作Mapper
* @Entity org.example.domain.po.ErpMaterialCategory
*/
public interface ErpMaterialCategoryMapper extends BaseMapper<ErpMaterialCategory> {
//    List<ErpMaterialCategory> findTree(Integer parentId);
List<ErpMaterialCategoryVo> selectOrganVOTree(Long parentId);

List<ErpMaterialCategoryVo> queryParent(@Param("currentId") Long id, @Param("parentId") Long parentId, @Param("tenantId") Long tenantId);
    
    List<ErpMaterialCategoryVo> findCategoryByTenantId(@Param("tenantId") Long tenantId, @Param("parentId") Long parentId);
    
    List<Long> getIds(Long categoryId);
}




